package com.github.iot.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 展厅
 *
 * @Author: 梁声洪
 * @Date: 2019/12/8 19:28
 * @Version: v1.0.0
 */
@Entity
public class Showroom {

    /**
     * 主键ID
     */
    @Id(autoincrement = true)
    private Long id;

    /**
     * 名称
     */
    @NotNull
    private String title;

    /**
     * 标识图片
     */
    @NotNull
    private String ico;

    /**
     * 排序
     */
    @NotNull
    private Integer sort;

    /**
     * 展柜个数
     */
    @NotNull
    private Integer num = 0;

    @Generated(hash = 9355179)
    public Showroom(Long id, @NotNull String title, @NotNull String ico,
            @NotNull Integer sort, @NotNull Integer num) {
        this.id = id;
        this.title = title;
        this.ico = ico;
        this.sort = sort;
        this.num = num;
    }

    @Generated(hash = 879354363)
    public Showroom() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIco() {
        return ico;
    }

    public void setIco(String ico) {
        this.ico = ico;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
    
}